# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer:
pkgname=keama
pkgver="4.4.1_git20191205"
_gitrev="2fefb3ff08295c688fd32d43e3e8fdfa7558f867"
pkgrel=0
pkgdesc="Kae DHCP Migration Assistant"
url="https://gitlab.isc.org/isc-projects/dhcp"
arch="all"
license="ISC"
subpackages="$pkgname-doc"
source="https://gitlab.isc.org/isc-projects/dhcp/-/archive/$_gitrev/dhcp-$_gitrev.tar.gz"
builddir="$srcdir/dhcp-$_gitrev"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make -C keama
}

check() {
	make -C keama check
}

package() {
	make -C keama install DESTDIR="$pkgdir"
}

sha512sums="a60093ead04200ae4d82108232b4005bc5993a3b5d5579cf18afb7bbf886aa9e9a61fc34f07c937accbee4f29faa81f3d6e7583f6285bd4920b0f724ecc29769  dhcp-2fefb3ff08295c688fd32d43e3e8fdfa7558f867.tar.gz"
